/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package una.ws;

import javax.jws.WebService;
import javax.jws.WebMethod;









/**
 *
 * @author allamchz
 */
@WebService(serviceName = "UnaWs")
public class UnaWs {

    /**
     * This is a sample web service operation
     */
    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }

    /**
     * Web service operation
     */
    @WebMethod(operationName = "suma")
    public int suma(@WebParam(name = "num1") int num1, @WebParam(name = "num2") int num2) {
        //TODO write your implementation code here:
        return num1 + num2;
    }
}
